package org.particlethink.response;

import io.swagger.v3.oas.annotations.media.Schema;
import org.particlethink.entry.DeliverStatus;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class SubOrderStatusResponse {
    private DeliverStatus status;
    @Schema(description = "处理人")
    private String handleUsername;
    @Schema(description = "处理时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;
    @Schema(description = "处理意见")
    private String content;
    private boolean selected;

    public SubOrderStatusResponse(DeliverStatus status, String handleUsername, Date handleTime, String content, boolean selected) {
        this.status = status;
        this.handleUsername = handleUsername;
        this.handleTime = handleTime;
        this.content = content;
        this.selected = selected;
    }

    public SubOrderStatusResponse(DeliverStatus status, String handleUsername, Date handleTime, String content) {
        this.status = status;
        this.handleUsername = handleUsername;
        this.handleTime = handleTime;
        this.content = content;
    }

    public SubOrderStatusResponse() {
    }

    public DeliverStatus getStatus() {
        return status;
    }

    public void setStatus(DeliverStatus status) {
        this.status = status;
    }

    public String getHandleUsername() {
        return handleUsername;
    }

    public void setHandleUsername(String handleUsername) {
        this.handleUsername = handleUsername;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
